<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('系统管理员操作界面')"/>
    <th:block th:include="include :: summernote-css"/>
    <th:block th:include="include :: bootstrap-select-css"/>
</head>
<body class="gray-bg" style="margin: 0px auto">

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">

                <div class="ibox-content" id="divform">
                    <div class="ibox-title" align="center">
                        <h5>皖西学院在校生对开设日语公共课态度的调查问卷</h5>
                    </div>
                    <hr/>
                    <form method="post" id="quform" class="form-horizontal">
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: summernote-js"/>
<th:block th:include="include :: bootstrap-select-js"/>

<script type="text/javascript">
    var selections = []
    var now = getNow();
    watermark({"watermark_txt": "皖西学院在校生对开设日语公共课态度的调查问卷" + now});
    var submitdiv='';

    $(document).ready(function () {
        $.ajax({
            url:"/nc/ksWjdc/getlistone/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                    + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"'  \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='E' name='"+data[i].wjdcId+"' class='"+data[i].optionalE+"' \><font size='3.8'>E:</font>"+data[i].optionalE+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='F' name='"+data[i].wjdcId+"' class='"+data[i].optionalF+"' \><font size='3.8'>F:</font>"+data[i].optionalF+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='G' name='"+data[i].wjdcId+"' class='"+data[i].optionalG+"' \><font size='3.8'>G:</font>"+data[i].optionalG+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='H' name='"+data[i].wjdcId+"' class='"+data[i].optionalH+"' \><font size='3.8'>H:</font>"+data[i].optionalH+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='I' name='"+data[i].wjdcId+"' class='"+data[i].optionalI+"' \><font size='3.8'>I:</font>"+data[i].optionalI+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='J' name='"+data[i].wjdcId+"' class='"+data[i].optionalG+"' \><font size='3.8'>J:</font>"+data[i].optionalJ+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='K' name='"+data[i].wjdcId+"' class='"+data[i].optionalK+"' \><font size='3.8'>K:</font>"+data[i].optionalK+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='L' name='"+data[i].wjdcId+"' class='"+data[i].optionalL+"' \><font size='3.8'>L:</font>"+data[i].optionalL+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='M' name='"+data[i].wjdcId+"' class='"+data[i].optionalM+"' \><font size='3.8'>M:</font>"+data[i].optionalM+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='N' name='"+data[i].wjdcId+"' class='"+data[i].optionalN+"' \><font size='3.8'>N:</font>"+data[i].optionalN+"<br/>"
                    + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='O' name='"+data[i].wjdcId+"' class='"+data[i].optionalO+"' \><font size='3.8'>O:</font>"+data[i].optionalO+"<br/>"
                    + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                        // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlisttwo/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='E' name='"+data[i].wjdcId+"' class='"+data[i].optionalE+"' \><font size='3.8'>E:</font>"+data[i].optionalE+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistthree/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistfour/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='E' name='"+data[i].wjdcId+"' class='"+data[i].optionalE+"' \><font size='3.8'>E:</font>"+data[i].optionalE+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistfive/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistseven/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistnine/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistfourteen/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='checkbox' id='"+data[i].wjdcId+"' onchange='duodaan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='checkbox' id='"+data[i].wjdcId+"' onchange='duodaan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='checkbox' id='"+data[i].wjdcId+"' onchange='duodaan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='checkbox' id='"+data[i].wjdcId+"' onchange='duodaan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistfifteen/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlistnineteen/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='E' name='"+data[i].wjdcId+"' class='"+data[i].optionalE+"' \><font size='3.8'>E:</font>"+data[i].optionalE+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlisttwenty/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlisttwentyone/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlisttwentyfour/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='D' name='"+data[i].wjdcId+"' class='"+data[i].optionalD+"' \><font size='3.8'>D:</font>"+data[i].optionalD+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
            },
            error:function(){}
        });
        $.ajax({
            url:"/nc/ksWjdc/getlisttwentyfive/",
            async: false,
            type:'post',
            success:function(data){
                var options="";   //字符串拼接
                for(var i in data){  //遍历json数组
                    options +="<div id='"+data[i].wjdcId+"' class='form-group'><label class='col-sm-12 control-box text-info'>"+data[i].wjdcId+":"+data[i].wjdc+"<br/></label>"
                        + "<div class='col-sm-12 control-box text-info'><input type='hidden' name='wjdcId' value='"+data[i].wjdcId+"'>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='A' name='"+data[i].wjdcId+"' class='"+data[i].optionalA+"' \><font size='3.8'>A:</font>"+data[i].optionalA+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='B' name='"+data[i].wjdcId+"' class='"+data[i].optionalB+"' \><font size='3.8'>B:</font>"+data[i].optionalB+"<br/>"
                        + "<input type='radio' id='"+data[i].wjdcId+"' onchange='daan(this)' value='C' name='"+data[i].wjdcId+"' class='"+data[i].optionalC+"' \><font size='3.8'>C:</font>"+data[i].optionalC+"<br/>"
                        + "<input type='hidden' name='xzAnswer'></div></div><hr>";
                    // "<input type='radio' class='roles' name='roles' id='"+data[i].wjdcs+"' value='"+data[i].wjdc+"'>"+data[i].wjdc+"&nbsp;&nbsp;"
                }
                // $('#quform').empty();
                $('#quform').append(options);
                submitdiv = "<div class='form-group'><div class='col-sm-4 col-sm-offset-2'>"
                    + "<button class='btn btn-primary' type='submit' onclick='tijiao()'>保存并提交</button>"
                    + "<button class='btn btn-white' type='submit'>取消</button></div></div>";
                $('#quform').append(submitdiv);
            },
            error:function(){}
        });
        return false;
    });

    function daan(obj) {
        if ($(obj).prop("checked") == true) {
            var p = $(obj).val();
            var pbiaoqian = "<p class='col-sm-12 control-box text-info'>您选择的答案是：" + p + "</p>";
            $(obj).parent().parent().find("p").remove();
            $(obj).parent().parent().append(pbiaoqian);
            // if是给页面计算分数的
            // if ($(obj).parent().find("input:eq(4)").val()==$(obj).val()){
            //     score=score+4;
            //     $(obj).parent().find("input:eq(4)").remove();
            //     $(obj).parents().find("input:eq(1)").val(score);
            // }
            // $(obj).parent().find("input:eq(4)").val(p);
            // $(obj).parent().find("input:eq(6)").val(questionId);
            $(obj).parent().find("input:last").val(p);
            if($(obj).attr('class').indexOf("结束答题")!=-1){
                if(confirm("您点击的选项将结束答题，您确定结束答题吗？如果确定请选择确定，否则请选择取消，并修改您选择的答案，谢谢您的配合！！！")){
                    tijiao();
                }
            };
        };
    };

    function duodaan(obj) {
        var str = "";
        $(obj).parent().parent().find("p").remove();
        for (var i = 0; i < $(obj).parent().find("input:checkbox:checked").length; i++) {
            str += $(obj).parent().find("input:checkbox:checked")[i].value;
        };
        var duop = "<p class='col-sm-12 control-box text-info'>您选择的答案是：" + str + "</p>";
        $(obj).parent().parent().append(duop);
        // if ($(obj).parent().find("input:eq(4)").val()==$(obj).val()){
        //     score=score+4;
        //     $(obj).parent().find("input:eq(4)").remove();
        //     $(obj).parents().find("input:eq(1)").val(score);
        // }
        // $(obj).parent().find("input:eq(4)").val(str);
        // $(obj).parent().find("input:eq(6)").val(questionIdbyduo);
        $(obj).parent().find("input:last").val(str);
    };

    function tijiao() {
        $.ajax({
            url:"/nc/ksWj/insertwjdc",
            type:'POST',
            data: $("#divform form").serialize(),
            success:function (result) {
                alert("您好，您已经完成了此次问卷调查，谢谢您的配合！！！");
                window.location.href = "/nc/ksWj/wj";
            },
        });
    };
</script>
</body>
</html>